home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / robo10.zip / DOROBO.B_T next >
Text File  |  1992-06-08  |  1KB  |  49 lines

  1. @ECHO OFF
  2.     set NODE=%1
  3.     if "%1"=="" set NODE=1
  4.  
  5. REM  
  6. REM   This batch file assumes you are  passing a node number
  7. REM   to it via the command line. If you  do not pass a node
  8. REM   number to  your ROBO  batch  then  the  node number is 
  9. REM   defaulted to 1. 
  10. REM
  11. REM   If you run a 1 line bbs then  feel free  to remove all
  12. REM   occurences of the text and  dos variable -NODE=%NODE%.
  13. REM
  14. REM   See your dos manual for more information on variables.
  15. REM
  16.  
  17.     @ECHO OFF
  18. :TOP
  19. CD\ROBOBBS
  20.     CLS
  21.     ROBOBBS -NODE=%NODE%
  22.     
  23.     if errorlevel 70 goto DONE
  24.     if errorlevel 60 ROBOGR -baud=38400 -NODE=%NODE%
  25.     if errorlevel 59 ROBOGR -baud=19200 -NODE=%NODE%
  26.     if errorlevel 58 ROBOGR -baud=16800 -NODE=%NODE%
  27.     if errorlevel 57 ROBOGR -baud=14400 -NODE=%NODE%        
  28.     if errorlevel 56 ROBOGR -baud=12000 -NODE=%NODE%        
  29.     if errorlevel 55 ROBOGR -baud=9600  -NODE=%NODE%
  30.     if errorlevel 54 ROBOGR -baud=7200  -NODE=%NODE%
  31.     if errorlevel 53 ROBOGR -baud=4800  -NODE=%NODE%
  32.     if errorlevel 52 ROBOGR -baud=2400  -NODE=%NODE%
  33.     if errorlevel 51 ROBOGR -baud=1200  -NODE=%NODE%
  34.     if errorlevel 50 ROBOGR -local      -NODE=%NODE%
  35.  
  36.     if errorlevel 1  goto ERROR
  37.  
  38.     goto TOP
  39. :ERROR
  40.     echo. >> ROBO%node%.LOG
  41.     echo ROBOBBS.EXE HAD A FATAL ERROR! >> ROBO%node%.LOG
  42.     echo. >> ROBO%node%.LOG
  43.     echo.
  44.     echo. ROBOBBS.EXE HAD A FATAL ERROR!
  45.     echo.
  46. :DONE
  47.     echo.
  48.     echo ROBO-BOARD Exited. 
  49.